<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- root template -->
   <xsl:template match="/">
      <html>
         <head>
            <title>Juicers Part 04</title>
         </head>

         <body>
            <br />

            <table border="1" align="left">
               <thead>
                  <tr>
                     <th bgcolor="black">
                        <font color="white">Juicer</font>
                     </th>

                     <th bgcolor="black">
                        <font color="white">Cost</font>
                     </th>
                  </tr>
               </thead>

               <tbody>
                  <xsl:for-each select="juicers/juicer">
                     <tr>
                        <td>
                           <xsl:value-of select="name" />
                        </td>

                        <td>
                           <xsl:value-of select="format-number(cost[@currency='USD'], '$####0.00')" />
                        </td>
                     </tr>
                  </xsl:for-each>
               </tbody>
            </table>

            <br clear="left" />

            <br />

            <br />

            <table border="1" align="left">
               <thead>
                  <tr>
                     <th bgcolor="black">
                        <font color="white">Juicer</font>
                     </th>

                     <th bgcolor="black">
                        <font color="white">Description</font>
                     </th>
                  </tr>
               </thead>

               <tbody>
                  <xsl:for-each select="juicers/juicer">
                     <tr>
                        <td>
                           <xsl:value-of select="name" />
                        </td>

                        <td>
                           <xsl:value-of select="description" />
                        </td>
                     </tr>
                  </xsl:for-each>
               </tbody>
            </table>
         </body>
      </html>
   </xsl:template>
</xsl:stylesheet>

